package cn.cloud.search.bean.config;

/************
 * 搜索域配置实体
 * @author haole
 *
 */
public class FieldConfig {
	
	public static int IS_ID = 1;
	
	public static int IS_NOT_ID = 0;
	
	public static int IS_QUERY_FIELD = 1;
	
	public static int IS_NOT_QUERY_FIELD = 0;
	
	public static int IS_TITLE = 1;
	
	public static int IS_NOT_TITLE = 0;
	
	public static int IS_CONTENT = 1;
	
	public static int IS_NOT_CONTENT = 0;
	
	
	public static int DEFAULT_SHOW_LENGTH = 60;
	
	
	
	private String name;
	
	private int isId = IS_NOT_ID;
	
	private int isQueryField = IS_QUERY_FIELD;
	
	private int isTitle = IS_NOT_TITLE;
	
	private int isContent = IS_NOT_CONTENT;
	
	private int showLength = DEFAULT_SHOW_LENGTH;
	
	
	public FieldConfig(String name,int isId,int isQueryField,int isTitle,int isContnet,int showLength){
		this.name = name;
		this.isId = isId;
		this.isQueryField = isQueryField;
		this.isContent = isContnet;
		this.isTitle = isTitle;
		this.showLength = showLength;
	}
	
	public FieldConfig(String name){
		this.name = name;
	}

	public static int getIS_ID() {
		return IS_ID;
	}

	public static int getIS_NOT_ID() {
		return IS_NOT_ID;
	}

	public static int getIS_QUERY_FIELD() {
		return IS_QUERY_FIELD;
	}

	public static int getIS_NOT_QUERY_FIELD() {
		return IS_NOT_QUERY_FIELD;
	}

	public static int getDEFAULT_SHOW_LENGTH() {
		return DEFAULT_SHOW_LENGTH;
	}

	public String getName() {
		return name;
	}

	public int getIsId() {
		return isId;
	}

	public int getIsQueryField() {
		return isQueryField;
	}

	public int getShowLength() {
		return showLength;
	}

	public int getIsTitle() {
		return isTitle;
	}

	public int getIsContent() {
		return isContent;
	}
	
	

}
